package modified;

public class Space {
  private Checker checker;

  public Space(Checker checker) {
    this.checker = checker;
  }

  public Space() {
    checker = null;
  }

  public boolean hasChecker() {
    if(checker == null) {
      return false;
    }
    else {
      return true;
    }
  }

  public Checker getChecker() {
    /*
    if (!this.hasChecker()) {
      throw new NoCheckerException();
    }
    */

    return checker;
  }

  public void placeChecker(Checker checker) {
    this.checker = checker;
  }

  public void removeChecker() {
    checker = null;
  }

}
